package com.huawei.appmarket.service.settings.card;

import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.settings.view.widget.EnterLayout;
import o.cgz;
import o.cvx;
import o.der.d;
import o.der.f;
import o.evx;

public class AboutWebSiteCard extends BaseAboutCard {
    protected EnterLayout ˊ;
    private evx ˋ = new evx(this) {
        final /* synthetic */ AboutWebSiteCard ˎ;

        {
            this.ˎ = r1;
        }

        public void ˋ(View view) {
            this.ˎ.ˊ(cvx.ˎ("gallery.domain.url"));
        }
    };

    public AboutWebSiteCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        String ˎ = cvx.ˎ("gallery.domain.url");
        if (TextUtils.isEmpty(ˎ) || !ˎ.contains("https://")) {
            Object obj = ˎ;
        } else {
            CharSequence substring = ˎ.substring("https://".length());
        }
        this.ˊ = (EnterLayout) view.findViewById(d.ˌॱ);
        this.ˊ.setTitle(Integer.valueOf(f.ʼ));
        if (TextUtils.isEmpty(substring)) {
            this.ˊ.setMemoVisibility(8);
        } else {
            this.ˊ.setMemoVisibility(0);
            this.ˊ.setMemo(substring);
        }
        this.ˊ.setOnClickListener(this.ˋ);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
    }
}
